package example.base;

import lombok.Setter;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
@Setter
public abstract class DecoratorComponent extends Component {

    protected Component component;

    @Override
    public void operate() {
        if (component != null) {
            component.operate();
        }
    }
}
